import type { RouteRecordRaw } from 'vue-router';
import { $t } from '#/locales';

const routes: RouteRecordRaw[] = [
  {
    name: 'Mes/report',
    path: '/mes/report',
    redirect: 'noRedirect',
    meta: {
      title: $t('mes.report.title'),
      icon: 'ic:baseline-view-in-ar',
      noCache: false
    },
    children: [
      {
        name: 'Report',
        path: 'report',
        component: () => import('#/views/mes/report/report/index.vue'),
        meta: {
          title: $t('mes.report.children.Report.title'),
          icon: 'edit'
        }
      },
      {
        name: 'Designer',
        path: 'designer',
        component: () => import('#/views/mes/report/designer/index.vue'),
        meta: {
          title: $t('mes.report.children.Designer.title'),
          icon: 'edit'
        }
      }
    ]
  }
];

export default routes;
